package com.ios.dto;

import com.ios.entity.LoginRecord;
import com.ios.entity.RelativeUser;
import com.ios.enums.RelativeStateEnum;

/**
*@Author:WenTao
*@Description:监护人注册返回类
 *
*@Date:16:07 2018/7/17
*/
public class RelativeExecution {
    /*结果状态*/
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*残疾人对象*/
    private RelativeUser relativeUser;
    /*登录记录*/
    private LoginRecord loginRecord;

    /*操作失败时的构造器*/
    public RelativeExecution(RelativeStateEnum stateEnum){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    /*操作成功时的构造器*/
    public RelativeExecution(RelativeStateEnum stateEnum, RelativeUser relativeUser){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.relativeUser = relativeUser;
    }

    /*操作成功时的构造器*/
    public RelativeExecution(RelativeStateEnum stateEnum, LoginRecord loginRecord){
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.loginRecord = loginRecord;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public RelativeUser getRelativeUser() {
        return relativeUser;
    }

    public void setRelativeUser(RelativeUser disablerUser) {
        this.relativeUser = relativeUser;
    }

    public LoginRecord getLoginRecord() {
        return loginRecord;
    }

    public void setLoginRecord(LoginRecord loginRecord) {
        this.loginRecord = loginRecord;
    }
}
